
# Blinks a single builtin LED
import Adafruit_BBIO.GPIO as GPIO
from twisted.internet import task,reactor
import time

def blink():
    """
    function  gpioblink
    """
    global state
    
    if state is GPIO.LOW:
        tate = GPIO.HIGH
    else:
        tate = GPIO.LOW
    GPIO.output(LED,tate)

LED = "USR3"
state = GPIO.LOW

GPIO.setup(LED, GPIO.OUT)

while True:
    blink
    time.sleep(0.5)



#timer_call = task.LoopingCall(blink)   
#timer_call.start(1)
#reactor.run()